package com.example.selfdefinescope.bean;

public class Car {
    private String brand;
    public Car(String brand) {
        this.brand = brand;
        System.out.println("Car的构造函数被调用");
    }

    @Override
    public String toString() {
        return "Car{" +
                "brand='" + brand + '\'' +
                '}';
    }
}
